package cn.wei.sdd.core.pojo.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 回收订单表
 * </p>
 *
 * @author Wei
 * @since 2021-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Order对象", description="回收订单表")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "接单回收员id")
    private Long recyclerId;

    @ApiModelProperty(value = "接单回收员姓名")
    private String recyclerName;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "地址")
    private String address;


    @ApiModelProperty(value = "预约时间")
    private String scheduledTime;

    @ApiModelProperty(value = "总金额")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "状态（-1：取消订单，0：待接单，1：等待上门， 2：完成）")
    private Integer status;

    @ApiModelProperty(value = "是否线下现金支付（0：否，1：是）")
    private Integer cashPayment;

    @ApiModelProperty(value = "回收员处理订单状态（-1：待回收，0：已回收，1：待打包， 2：完成）")
    private Integer recyclerStatus;


    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @Version //代表乐观锁注解
    private Integer version;

    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;





}
